package demo;


public class Animal {
    private String name;
    private int age;

    public Animal(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public Animal() {}

    public void shout(){
        System.out.println("Shouting " + name + " " + age);
    }

    public void eat(){
        System.out.println("Eating " + name + " " + age);
    }
}
